package com.zhentao.service;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.wemedia.WmNews;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhentao.model.common.wemedia.WmNewsDownOrUpDto;
import com.zhentao.model.common.wemedia.WmNewsDto;
import com.zhentao.model.common.wemedia.WmNewsPageReqDto;

/**
* @author EWEWW
* @description 针对表【wm_news(自媒体图文内容信息表)】的数据库操作Service
* @createDate 2024-06-07 10:07:31
*/
public interface WmNewsService extends IService<WmNews> {
    /**
     * 查询文章内容
     * @param dto
     * @return
     */
    public ResponseResult findAll(WmNewsPageReqDto dto);

    /**
     *  发布文章或保存草稿
     * @param dto
     * @return
     */
    public ResponseResult submitNews(WmNewsDto dto) throws Exception;

    /**
     * 文章上下架
     */
    public ResponseResult downOrUp(WmNewsDownOrUpDto dto);

}
